import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

import org.junit.Test;

public class fileTest {
    @Test
    public void test1(){
        File file=new File("E:\\java学习\\code\\day12\\java1\\src\\1.jpg");
        System.out.println(file.getAbsolutePath());
        System.out.println(file.exists());
        try {
            FileInputStream fips=new FileInputStream(file);
        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            System.out.println("1");
        }
    }
}
